package com.usian.user.feign;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

//自媒体远程接口
@FeignClient("leadnews-article")
@RequestMapping("/api/v1/author")
public interface ArticleFeign {
    @PostMapping("/findByUserId/{id}")
    public ApAuthor findByUserId(@PathVariable("id") Integer id);

    @PostMapping("/save")
    public ResponseResult add(@RequestBody ApAuthor apAuthor);
}
